<?php
namespace App\Repositories\Presenter;

class RoleUserPresenter
{
	public function hasRole($roleUsers,$role){
		$result = FALSE;
		foreach($roleUsers as $v){
			if($v['role_id'] == $role){
				$result = TRUE;
				break;
			}
		}
		return $result;
	}
}